import request from "../../../../assets/js/request";

/**
 * 查询用户信息
 * @param searchData
 * @returns {*}
 */
export function searchUser(searchData){
  return request({
    url: '/user/searchUser',
    method: 'POST',
    data: searchData,
    headers : {
      "Content-Type" : "application/json"
    }
  })
}

/**
 * 删除用户信息
 * @param ids
 * @returns {*}
 */
export function deleteUser(ids){
  return request({
    url : '/user/deleteUser',
    method : 'post',
    data : ids,
    headers : {
      "Content-Type" : "application/json"
    }
  })
}

/**
 * 重置密码
 * @param ids
 * @returns {*}
 */
export function resetPassword(ids){
  return request({
    url : '/user/resetPassword',
    method : 'post',
    data : ids,
  })
}

/**
 * 修改用户状态
 * @param id
 * @param type
 * @returns {*}
 */
export function updateStatus(id,type){
  return request({
    url : '/user/updateStatus',
    method : 'get',
    params : {
      id : id,
      type : type
    },
    headers : {
      "Content-Type" : "application/json"
    }
  })
}
